/*
 * Copyright © 2023
 * @Author: zhangxiang
 * @Date: 2023-02-02 11:14:06
 * @LastEditors: zhangxiang
 * @LastEditTime: 2023-09-27 09:28:56
 * @Description:
 *
 */

import Layout from '@/layout'

const monitorRouter = {
  path: '/monitor',
  component: Layout,
  redirect: '/monitor/cn-resource',
  name: 'SystemMonitor',
  alwaysShow: true,
  meta: {
    title: '算网运维监控',
    menuNameKey: 'SystemMonitor',
    icon: 'monitor'
  },
  children: [
    {
      path: 'cn-resource',
      name: 'SystemMonitorCNRes',
      component: () => import('@/views/monitor/cn-resource/index'),
      meta: {
        title: '算力资源监控',
        menuNameKey: 'SystemMonitorCNRes',
        icon: '',
        menuKey: 'SystemMonitorCNRes'
      },
      children: [
        {
          path: 'stats', // 路径
          name: 'SystemMonitorCNResStats', // 路由跳转name
          component: () => import('@/views/monitor/cn-resource/stats'), // 视图对应的组件
          meta: {
            menuNameKey: 'SystemMonitorCNResStats',
            title: '资源视图' // 标题
          }
        },
        {
          path: 'detail', // 路径
          name: 'SystemMonitorCNResDetail', // 路由跳转name
          component: () => import('@/views/monitor/cn-resource/detail'), // 视图对应的组件
          meta: {
            menuNameKey: 'SystemMonitorCNResDetail',
            title: '监控详情' // 标题
          }
        },
        {
          path: 'pm', // 路径
          name: 'SystemMonitorCNResPM', // 路由跳转name
          component: () => import('@/views/monitor/cn-resource/pm'), // 视图对应的组件
          meta: {
            menuNameKey: 'SystemMonitorCNResPM',
            title: '物理机监控' // 标题
          }
        }
      ]
    },
    {
      path: 'cluster',
      name: 'SystemMonitorCluster',
      component: () => import('@/views/self-intelligence-ops/monitor'),
      meta: {
        title: '集群资源监控',
        menuNameKey: 'SystemMonitorCluster',
        icon: '',
        menuKey: 'SystemMonitorCluster'
      }
    },
    {
      path: 'report',
      name: 'SystemMonitorReport',
      component: () => import('@/views/monitor/report'),
      meta: {
        title: '报表管理',
        menuNameKey: 'SystemMonitorReport',
        icon: '',
        menuKey: 'SystemMonitorReport'
      }
    },
    {
      path: 'debug-power',
      name: 'SystemMonitorDebugPower',
      component: () => import('@/views/monitor/debug-power'),
      meta: {
        title: '调试管理',
        menuNameKey: 'SystemMonitorDebugPower',
        icon: '',
        menuKey: 'SystemMonitorDebugPower'
      }
    },
    {
      path: 'alarm',
      name: 'SystemMonitorAlarm',
      component: () => import('@/views/self-intelligence-ops/alarm'),
      meta: {
        title: '告警中心',
        menuNameKey: 'SystemMonitorAlarm',
        icon: '',
        menuKey: 'SystemMonitorAlarm'
      }
    }
    // {
    //   path: 'diagnose',
    //   name: 'SystemMonitorDiagnose',
    //   component: () => import('@/views/self-intelligence-ops/diagnose'),
    //   meta: {
    //     title: '健康诊断',
    //     menuNameKey: 'SystemMonitorDiagnose',
    //     icon: '',
    //     menuKey: 'SystemMonitorDiagnose'
    //   }
    // },
    // {
    //   path: 'advice',
    //   name: 'SystemMonitorAdvice',
    //   component: () => import('@/views/self-intelligence-ops/advice'),
    //   meta: {
    //     title: '优化建议',
    //     menuNameKey: 'SystemMonitorAdvice',
    //     icon: '',
    //     menuKey: 'SystemMonitorAdvice'
    //   }
    // }
  ]
}

export default monitorRouter
